package com.abhimanyu.bootstrap;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.abhimanyu.bootstrap.facade.IDollarRateNotifierService;



public class DollarRateNotifierBootStrap {

	public static void main(String[] args) {
		new DollarRateNotifierBootStrap().notifyDollarRate();
	}

	public void notifyDollarRate() {

		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		IDollarRateNotifierService service = context
				.getBean(IDollarRateNotifierService.class);
		service.sendDollarRateChangeNotification();

	}
}
